package com.ants.boot.wx.vo.wxareacode;

import com.ants.boot.system.domain.SysMenu;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author 蚂蚁会花呗
 * @date 2022/6/2 10:30
 */
@ApiModel(value = "地区编码")
public class AreaCodeVo {

    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 地区名
     */
    @ApiModelProperty(value = "地区名")
    private String name;

    /**
     * 地区编码
     */
    @ApiModelProperty(value = "地区编码")
    private String code;

    /**
     * 父地区编码
     */
    @ApiModelProperty(value = "父地区编码")
    private String pcode;

    /**
     * 类型1省、2市、3区县
     */
    @ApiModelProperty(value = "类型1省、2市、3区县")
    private String type;

    /**
     * 不作持久化
     */
    @TableField(exist = false)
    private List<SysMenu> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
